package cn.itcast.feign.client;


import cn.itcast.feign.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

// 设置远程调用的服务的名
@FeignClient("user-service")

// 配置类方式,配置日志的局部记录
//@FeignClient(value = "user-service",configuration = DefaultFeignConfiguration.class)

public interface UserClient {
    @GetMapping("/user/{id}")
    User queryById(@PathVariable("id") Long id);
}
